package com.lanou3g.test;

import com.lanou3g.service.PersonService;
import org.springframework.context.support.ClassPathXmlApplicationContext;
//JDK动态代理和CGLB代理,就有没实现接口
public class AnnoAopTest1 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring-web2.xml");
        PersonService personService = ac.getBean(PersonService.class);
        System.out.println(personService.getClass());
        personService.add();
        personService.delete();
    }
}
